//
//  BankListAddCell.swift
//  Order
//
//  Created by Monster . on 2020/7/4.
//  Copyright © 2020 lazyloading. All rights reserved.
//

import UIKit

class BankListAddCell: UITableViewCell {

    @IBOutlet weak var addButton: UIButton!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        selectionStyle = .none
        layer.cornerRadius = 6
        addButton.setTitleColor(ZMColor.Orange.orange1, for: .normal)
        addButton.titleLabel?.font = UIFont.systemFont(ofSize: 18, weight: .regular)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    override var frame: CGRect {
        didSet {
            var newFrame = frame
            newFrame.origin.x += 15
            newFrame.origin.y += 5
            newFrame.size.width -= 30
            newFrame.size.height -= 10
            super.frame = newFrame
        }
    }
    
}
